﻿using Models;

namespace IBLL
{
    public interface IHouseNumBLL
    {
        /// <summary>
        /// 新增房号
        /// </summary>
        /// <param name="house"></param>
        /// <returns></returns>
        Task<int> AddHouseNum(HouseNum house);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="index"></param>
        /// <param name="size"></param>
        /// <param name="pmin">最小价格</param>
        /// <param name="pmax">最大价格</param>
        /// <param name="State">状态 1表示扑空闲 2表示已预订</param>
        /// <returns>返回符合条件总数+分页查询后的数据集合</returns>
        dynamic GetHouseNumPageWhere(int index,int size,decimal pmin,decimal pmax, int State);


        /// <summary>
        /// 批量真删除
        /// </summary>
        /// <param name="idstring">由逗号分隔的id字符串</param>
        /// <returns></returns>
        Task<int> DeleteRange(string idstring);
        /// <summary>
        /// 批量逻辑删除【状态修改】
        /// 本质是修改
        /// </summary>
        /// <param name="idstring"></param>
        /// <returns></returns>
        Task<int> DeleteRangeLogic(string idstring);

        /// <summary>
        /// 空闲和已预订修改
        /// 本质是修改
        /// </summary>
        /// <param name="idstring"></param>
        /// <returns></returns>
        Task<int> UpdateState(string idstring);

    }
}
